﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BL
{
    public class Credentials
    {
        public string Username { get; set; }
        public string Password { get; set; }
    }

    public partial class Employee
    {
        public Credentials Credentials
        {
            get
            {
                return new Credentials { Username = this.Person.Username, Password = this.Person.Password };
            }
            set
            {
                this.Person.Username = value.Username;
                this.Person.Password = value.Password;
            }
        }
    }
}
